IEllipse_KC Interface
- GetA
- SetA
- GetB
- SetB
- GetNormalAtAngle
- GetNormalAtAngle
If this ellipse defines an edge or otherwise is part of a model, after any modification IGeometry_DG.SetModified()
has to be called for the change to appear in 3D view.
Access to properties of an
ellipse
HRESULT GetA(double* a)
Parameters
a -[out, retval] The first radius of the ellipse
HRESULT SetA(double a)
- Remarks
Modifies the first radius
HRESULT GetB(double* b)
Parameters
b -[out, retval] The second radius of the ellipse
HRESULT SetB(double b)
- Remarks:
Modifies the second radius
HRESULT GetPointAtAngle(double angle, double* x, double* y)
Parameters
angle -[out] Polar angle in radiants (angle with direction of x axis)
x, y -[out] The returned point on the ellipse
- Remarks:
Returns point on the elipse in direction of the polar angle
HRESULT GetNormalAtAngle(double angle, double* nx, double* ny)
Parameters
angle -[out] Polar angle in radiants (angle with direction of x axis)
x, y -[out] The returned point on the ellipse
- Remarks:
Returns normal at point on the elipse in direction of the polar angle.
Coordinates of the point can beobtained with the GetPointAtAngle() above
|